# -*- coding: utf-8 -*-
"""
@time：  2021/06/16  21:28
@Auto：Mr. xingye  993843278
@Company 星野训练营 99384378@qq.com
@Function:模块用意

"""
from keywords.interkeys import Inter
inter = Inter()
inter.seturl('http://42.192.168.57:8080/inter/HTTP')
inter.post('auth')
inter.savejson('mytoken','$.token')
inter.addheader('token','${mytoken}')
inter.post('login',"username=xingye&password=123456")
inter.assertequals('$.msg','恭喜您，登录成功')
inter.post('logout')
inter.assertequals('$.msg','用户已退出登录')